package com.hongyuan.sellfitness.base;

import java.util.HashMap;
import java.util.Map;

public class Constants {

    /*
    * Integer:接口code
    * String:接口名
    * */
    private Map<Integer,String> apis = new HashMap<>();

    private static Constants constants = null;

    private Constants(){
        addApis();
    }

    public static Constants getInstance(){
        if(constants == null){
            constants = new Constants();
        }
        return constants;
    }

    private void addApis(){
        apis.put(GET_TOKEN, "api_token");
        apis.put(MEMBERLOGIN, "memberlogin");
        apis.put(GET_IMG_LIST, "get_img_list");
        apis.put(GET_PLAN_DATE, "get_plan_date");
        apis.put(GET_COURSE_SUPER_LIST, "get_course_super_list");
        apis.put(GET_MY_COURSE_PRIVITE_LIST, "get_my_course_privite_list");
        apis.put(GET_MEMBER_INDEX_INFO, "get_member_index_info");
        apis.put(GET_MEMEBER_OS, "get_member_os");
        apis.put(GET_OFFLINE_STORE_INFO, "get_offline_store_info");
        apis.put(GET_COACH_LIST, "get_coach_list");
        apis.put(GET_MY_CARD_LIST, "get_my_card_list");
        apis.put(GET_COURSE_PRIVITE_LIST, "get_course_privite_list");
        apis.put(GET_COURSE_PRIVITE_INFO, "get_course_privite_info");
        apis.put(CHECK_COME_OR_OFF_STORE, "check_come_or_off_store");
        apis.put(GET_COME_CARD, "get_come_card");
        apis.put(SHOW_CODE, "show_code");
        apis.put(CHECK_DO_CARD, "check_do_card");
        apis.put(GET_SOURSE_SUPER_INFO, "get_course_super_info");
        apis.put(GET_CARD_LIST, "get_card_list");
        apis.put(SUPER_COURSE_XY_QD, "super_course_xy_qd");
        apis.put(CANCEL_COURSE_SUPER_ORDER, "cancel_course_super_order");
        apis.put(ADD_REMIND_CS, "add_remind_cs");
        apis.put(DEL_REMIND_CS, "del_remind_cs");
        apis.put(GET_CS_NUMBER, "get_cs_number");
        apis.put(SIGIN_UP_COURSE_SUPER, "sign_up_course_super");
        apis.put(GET_CARD_INFO, "get_card_info");
        apis.put(GET_COACH_INDEX_INFO, "get_coach_index_info");
        apis.put(GET_COACH_COURSE_PRIVITE, "get_coach_course_privite");
        apis.put(GET_COACH_LAST_KONG_TIME, "get_coach_last_kong_time");
        apis.put(GET_COACH_TIMEPLAN_DAY_LIST, "get_coach_timeplan_day_list");
        apis.put(GET_MY_FRIENDS, "get_my_friends");
        apis.put(GET_CIRCLE_LIST, "get_circle_list");
        apis.put(FIND_MEMBER_LIST, "find_member_list");
        apis.put(FIND_CIRCLE_LIST, "find_circle_list");
        apis.put(GET_CIRCLE_CATEGORY_LIST, "get_circle_category_list");
        apis.put(CIRCLE_MEMBER_INDEX, "circle_member_index");
        apis.put(CIRCLE_OTHER_MEMBER_INDEX, "circle_other_member_index");
        apis.put(GET_MEMBER_CIRCLE_LIST, "get_member_circle_list");
        apis.put(GET_OTHER_MBEMBER_CIRCLE_LIST, "get_other_member_circle_list");
        apis.put(ADD_CIRCLE_PRAISE, "add_circle_praise");
        apis.put(CANCEL_CIRCLE_PRAISE, "cancel_circle_praise");
        apis.put(ADD_FRIENT, "add_friend");
        apis.put(GET_GZ_MY, "get_gz_my");
        apis.put(IS_MY_FRIEND, "is_my_friend");
        apis.put(UPFILE_OSS, "upfile_oss");
        apis.put(UPFILE_OSS_MORE, "upfile_oss_more");
        apis.put(UPDATE_MEMBER_HEAD, "update_member_head");
        apis.put(UPDATE_MEMBER_NAME, "update_member_name");
        apis.put(UPDATE_MEMBER_SEX, "update_member_sex");
        apis.put(UPDATE_MEMBER_BIRTH, "update_member_birth");
        apis.put(UPDATE_M_INFO, "update_m_info");
        apis.put(UPDATE_MEMBER_SIGN, "update_member_sign");
        apis.put(GET_CIRCLE_INFO, "get_circle_info");
        apis.put(GET_CIRCLE_REVIEWLIST, "get_circle_reviewList");
        apis.put(ADD_CIRCLE_REVIEW, "add_circle_review");
        apis.put(GET_CIRCLE_CATEGORY_INFO, "get_circle_category_info");
        apis.put(GET_CIRCLE_MEMBER_LIST, "get_circle_member_list");
        apis.put(ADD_CIRCLE, "add_circle");
        apis.put(GET_MSG_CT_LIST, "get_msg_ct_list");
        apis.put(GET_REVIEW_MSG_LIST, "get_review_msg_list");
        apis.put(GET_PRAISE_MSG_LIST, "get_praise_msg_list");
        apis.put(GET_FRIEND_MSG_LIST, "get_friend_msg_list");
        apis.put(UPATE_MSG_READ, "update_msg_read");
        apis.put(GET_MSG_LIST, "get_msg_list");
        apis.put(GET_PRAISE_LIST, "get_praise_list");
        apis.put(GET_MY_CARD_INFO, "get_my_card_info");
        apis.put(GET_PRICE_BY_NUM, "get_price_by_num");
        apis.put(USE_COUPON_LIST, "use_coupon_list");
        apis.put(BUY_PRIVITE_COURSE, "buy_privite_course");
        apis.put(GET_RESERVATION_LESSON_INFO, "get_reservation_lesson_info");
        apis.put(ADD_COURSE_PRIVITE_APPOINTMENT, "add_course_privite_appointment");
        apis.put(GET_MEMBER_APPOINTMENT_COURSE_PRIVITE_LIST, "get_member_appointment_course_privite_list");
        apis.put(PRIVITE_COURSE_QD, "privite_course_qd");
        apis.put(GET_CANCEL_RESON, "get_cancel_reason");
        apis.put(CANCEL_COURSE_PRIVITE_APPOINTMENT_NEW, "cancel_course_privite_appointment_new");
        apis.put(GET_MEMBER_SIGN_UP_COURSE_SUPER_LIST, "get_member_sign_up_course_super_list");
        apis.put(GET_ORDER_LIST, "get_order_list");
        apis.put(CANCEL_ORDER, "cancle_order");
        apis.put(GET_ORDER_INFO, "get_order_info");
        apis.put(GET_ONLINE_KF, "get_online_kf");
        apis.put(MY_COUPON_LIST, "my_coupon_list");
        apis.put(COUPON_FOR_LIST, "coupon_for_list");
        apis.put(OS_COUPON_LIST, "os_coupon_list");
        apis.put(GET_COUPON, "get_coupon");
        apis.put(GET_M_INFO, "get_m_info");
        apis.put(GET_SALER_LIST, "get_saler_list");
        apis.put(ADD_CARD_ORDER, "add_card_order");
        apis.put(GET_MESSAGE_TOKEN, "get_token");
        apis.put(SEND_REGI_MSG, "send_regi_msg");
        apis.put(DO_FIND_PASSWORD, "do_find_password");
        apis.put(MEMBERLOGIN_DXM, "memberlogin_dxm");
        apis.put(VERIFY_ROLE, "verify_role");
        apis.put(CHECK_APP_VERSION, "check_app_version");
        apis.put(GET_MSG_UNREAD_INFO, "get_msg_unread_info");
        apis.put(GETPREPAYORDER, "getPrePayOrder");
        apis.put(UNIFIEDORDER, "unifiedorder");
        apis.put(GET_COACH_PHOTO_LIST, "get_coach_photo_list");
        apis.put(DEL_PHOTOS, "del_photos");
        apis.put(ADD_COACH_PHOTO, "add_coach_photo");
    }


    //微信支付需要的appId
    public static final String APP_ID = "wxd67972be51c38709";

    /*
     * 获取请求接口名
     * */
    public String getPath(int code){
        return apis.get(code);
    }


    /*================================接口code=======================================*/

    //token的获取
    public final static int  GET_TOKEN = 0x001;
    //登录接口
    public final static int  MEMBERLOGIN = 0x002;
    //首页幻灯片
    public final static int  GET_IMG_LIST = 0x003;
    //学员选课的时间坐标
    public final static int  GET_PLAN_DATE = 0x004;
    //团课
    public final static int  GET_COURSE_SUPER_LIST = 0x005;
    //私教课
    public final static int  GET_MY_COURSE_PRIVITE_LIST = 0x006;
    //个人信息
    public final static int  GET_MEMBER_INDEX_INFO = 0x007;
    //获取支持门店列表
    public final static int  GET_MEMEBER_OS = 0x008;
    //门店信息
    public final static int  GET_OFFLINE_STORE_INFO = 0x009;
    //门店教练
    public final static int  GET_COACH_LIST = 0x010;
    //获取我的会员卡
    public final static int  GET_MY_CARD_LIST = 0x011;
    //获取门店私教课
    public final static int  GET_COURSE_PRIVITE_LIST = 0x012;
    //获取门店私教课详情
    public final static int  GET_COURSE_PRIVITE_INFO = 0x013;
    //会员--判断是进店还是离店操作
    public final static int  CHECK_COME_OR_OFF_STORE = 0x014;
    //会员--获取会员卡列表
    public final static int  GET_COME_CARD = 0x015;
    //会员--获取二维码图片
    public final static int  SHOW_CODE = 0x016;
    //会员--检查扫码是否完成
    public final static int  CHECK_DO_CARD = 0x017;
    //团课详情
    public final static int  GET_SOURSE_SUPER_INFO = 0x018;
    //获取门店会员卡列表
    public final static int  GET_CARD_LIST = 0x019;
    //团课签到
    public final static int  SUPER_COURSE_XY_QD = 0x020;
    //取消团课预约
    public final static int  CANCEL_COURSE_SUPER_ORDER = 0x021;
    //团课预约提醒
    public final static int  ADD_REMIND_CS = 0x022;
    //关闭团课预约提醒
    public final static int  DEL_REMIND_CS = 0x023;
    //获取团课位置
    public final static int  GET_CS_NUMBER = 0x024;
    //报名团课
    public final static int  SIGIN_UP_COURSE_SUPER = 0x025;
    //会员卡详情
    public final static int  GET_CARD_INFO = 0x026;
    //教练详情
    public final static int  GET_COACH_INDEX_INFO = 0x027;
    //教练私教课
    public final static int  GET_COACH_COURSE_PRIVITE = 0x028;
    //教练最近的空闲时间
    public final static int  GET_COACH_LAST_KONG_TIME = 0x029;
    //教练某一天的空闲时间
    public final static int  GET_COACH_TIMEPLAN_DAY_LIST = 0x030;
    //获取好友列表
    public final static int  GET_MY_FRIENDS = 0x031;
    //获取发现帖子
    public final static int  GET_CIRCLE_LIST = 0x032;
    //搜索用户
    public final static int  FIND_MEMBER_LIST = 0x033;
    //搜索发现帖子
    public final static int  FIND_CIRCLE_LIST = 0x034;
    //获取话题列表
    public final static int  GET_CIRCLE_CATEGORY_LIST = 0x035;
    //个人主页
    public final static int  CIRCLE_MEMBER_INDEX = 0x036;
    //用户主页
    public final static int  CIRCLE_OTHER_MEMBER_INDEX = 0x037;
    //个人主页帖子
    public final static int  GET_MEMBER_CIRCLE_LIST = 0x038;
    //用户主页帖子
    public final static int  GET_OTHER_MBEMBER_CIRCLE_LIST = 0x039;
    //帖子点赞
    public final static int  ADD_CIRCLE_PRAISE = 0x040;
    //帖子取消点赞
    public final static int  CANCEL_CIRCLE_PRAISE = 0x041;
    //添加、取消关注
    public final static int  ADD_FRIENT = 0x042;
    //获取我的粉丝
    public final static int  GET_GZ_MY = 0x043;
    //是否已关注
    public final static int  IS_MY_FRIEND = 0x044;
    //单文件上传
    public final static int  UPFILE_OSS = 0x045;
    //多文件上传
    public final static int  UPFILE_OSS_MORE = 0x046;
    //修改用户头像
    public final static int  UPDATE_MEMBER_HEAD = 0x047;
    //修改用户昵称
    public final static int  UPDATE_MEMBER_NAME = 0x048;
    //修改用户性别
    public final static int  UPDATE_MEMBER_SEX = 0x049;
    //修改用户生日
    public final static int  UPDATE_MEMBER_BIRTH = 0x050;
    //修改基本信息
    public final static int  UPDATE_M_INFO = 0x051;
    //修改个性签名
    public final static int  UPDATE_MEMBER_SIGN = 0x052;
    //获取帖子详情
    public final static int  GET_CIRCLE_INFO = 0x053;
    //获取帖子评论
    public final static int  GET_CIRCLE_REVIEWLIST = 0x054;
    //评论帖子
    public final static int  ADD_CIRCLE_REVIEW = 0x055;
    //话题详情
    public final static int  GET_CIRCLE_CATEGORY_INFO = 0x056;
    //话题参与人
    public final static int  GET_CIRCLE_MEMBER_LIST = 0x057;
    //发布帖子
    public final static int  ADD_CIRCLE = 0x058;
    //获取私信
    public final static int  GET_MSG_CT_LIST = 0x059;
    //获取评论消息
    public final static int  GET_REVIEW_MSG_LIST = 0x060;
    //获取点赞消息
    public final static int  GET_PRAISE_MSG_LIST = 0x061;
    //获取关注我的消息
    public final static int  GET_FRIEND_MSG_LIST = 0x062;
    //标记已读
    public final static int  UPATE_MSG_READ = 0x063;
    //读取子项的消息
    public final static int  GET_MSG_LIST = 0x064;
    //读取消息里面点赞我的人
    public final static int  GET_PRAISE_LIST = 0x065;
    //我的会员卡详情
    public final static int  GET_MY_CARD_INFO = 0x066;
    //购买私教课，数量变动获取价格
    public final static int  GET_PRICE_BY_NUM = 0x067;
    //获取可使用优惠券
    public final static int  USE_COUPON_LIST = 0x068;
    //生成私教课订单
    public final static int  BUY_PRIVITE_COURSE = 0x069;
    //预约私教详情
    public final static int  GET_RESERVATION_LESSON_INFO = 0x070;
    //预约私教
    public final static int  ADD_COURSE_PRIVITE_APPOINTMENT = 0x071;
    //获取已预约的私教课
    public final static int  GET_MEMBER_APPOINTMENT_COURSE_PRIVITE_LIST = 0x072;
    //私教课签到
    public final static int  PRIVITE_COURSE_QD = 0x073;
    //获取取消预约的理由
    public final static int  GET_CANCEL_RESON = 0x074;
    //取消预约
    public final static int  CANCEL_COURSE_PRIVITE_APPOINTMENT_NEW = 0x075;
    //获取我报名的团课
    public final static int  GET_MEMBER_SIGN_UP_COURSE_SUPER_LIST = 0x076;
    //获取我的订单
    public final static int  GET_ORDER_LIST = 0x077;
    //取消订单
    public final static int  CANCEL_ORDER = 0x078;
    //我的订单详情
    public final static int  GET_ORDER_INFO = 0x079;
    //客服
    public final static int  GET_ONLINE_KF = 0x080;
    //获取我的优惠券
    public final static int  MY_COUPON_LIST = 0x081;
    //获取领劵中心的标题栏
    public final static int  COUPON_FOR_LIST = 0x082;
    //获取优惠券
    public final static int  OS_COUPON_LIST = 0x083;
    //领取优惠卷
    public final static int  GET_COUPON = 0x084;
    //读取个人基本信息
    public final static int  GET_M_INFO = 0x085;
    //读取销售顾问
    public final static int  GET_SALER_LIST = 0x086;
    //生成购卡订单
    public final static int  ADD_CARD_ORDER = 0x087;
    //获取手机验证码token
    public final static int  GET_MESSAGE_TOKEN = 0x088;
    //获取短信验证码
    public final static int  SEND_REGI_MSG = 0x089;
    //修改密码
    public final static int  DO_FIND_PASSWORD = 0x090;
    //验证码登录
    public final static int  MEMBERLOGIN_DXM = 0x091;
    //权限验证
    public final static int  VERIFY_ROLE = 0x092;
    //检查更新app
    public final static int  CHECK_APP_VERSION = 0x093;
    //获取消息数量
    public final static int  GET_MSG_UNREAD_INFO = 0x094;
    //微信支付
    public final static int  GETPREPAYORDER = 0x095;
    //支付宝支付
    public final static int  UNIFIEDORDER = 0x096;
    //获取教练风采图片
    public final static int  GET_COACH_PHOTO_LIST = 0x097;
    //删除教练图片
    public final static int  DEL_PHOTOS = 0x098;
    //添加教练图片
    public final static int  ADD_COACH_PHOTO = 0x099;


}
